let images = require('./image.json')
console.log(images);
function getImagePath(src) {
	//#ifdef MP-WEIXIN 
		src = "https://www.yueguanjia.com/" + src; 
	//#endif
	return src;
}

function transImages(imgbox) {
	for (let i in imgbox) {
		let v = imgbox[i]
		if(typeof(v)!="string") {
			transImages(v)
		} else {
			imgbox[i] = getImagePath(v)
		}
		
		console.log(imgbox[i])
	}
}

transImages(images);

module.exports = images

